<%@page import="com.ingenio.dao.ProvinciaAdapter"%>
<%@page import="com.ingenio.business.Provincia"%>
<%@page import="com.ingenio.business.ConceptoMovimiento"%>
<%@page import="com.ingenio.dao.ConceptoMovimientoAdapter"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Edicion Provincias</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">

   <!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
   <!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
   <!--script src="js/less-1.3.3.min.js"></script-->
   <!--append ‘#!watch’ to the browser URL, then refresh the page. -->
	
   <link href="../css/bootstrap.min.css" rel="stylesheet">
   <link href="../css/pedido.css" rel="stylesheet">
   <link href="../css/principal.css" rel="stylesheet">

  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
  <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
  <![endif]-->

  <!-- Fav and touch icons -->
  <link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114-precomposed.png">
  <link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72-precomposed.png">
  <link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-57-precomposed.png">
  <link rel="shortcut icon" href="img/favicon.png">
  
  <script type="text/javascript" src="../js/jquery.min.js"></script>
  <script type="text/javascript" src="../js/bootstrap.min.js"></script>
  <script type="text/javascript" src="../js/ABMProvincias.js"></script>
</head>

<body>
<%
	Provincia p = null;
	if(request.getParameter("hidden_input2") != null){
		Integer id = Integer.parseInt(request.getParameter("hidden_input2"));
		ProvinciaAdapter pa = new ProvinciaAdapter();
		p = pa.devolverProvincia(id);
	}else{
		response.sendRedirect("listado_provincia.jsp");
		return;
	}
%>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
          </button>
          <a class="navbar-brand" href="index.jsp">InGenio</a>
        </div>
      </div>
    </nav>
<div class="container container--menu">
   <div class="row clearfix">
		<div class="col-md-12 column">
			<div class="page-header">
				<h1>Edici&oacute;n de Provincias</h1>
			</div>
			<div class="clear"></div>
            <form action="../ABMProvincia" method="post" class="form-horizontal" role="form">
  			  <div class="form-group">
    			<label for="id_provincia" class="col-lg-2 control-label">ID Provincia</label>
    			<div class="col-lg-3">
      			  <input type="text" class="form-control" id ="id_provincia" name="id_provincia" value="<%=p.getIdProvincia() %>" disabled>
      			  <input type="hidden" class="form-control" name="id_provincia_hidden" value="<%=p.getIdProvincia() %>">
      			  <input type="hidden" class="form-control" name="type" value="edit">
    			</div>
  			  </div>
 			  <div class="form-group">
    			<label for="descripcion_provincia" class="col-lg-2 control-label">Descripci&oacute;n</label>
    			<div class="col-lg-8">
      			  <input type="text" class="form-control" id="descripcion_provincia" name="descripcion_provincia" value="<%=p.getDescProvincia()%>">
    		    </div>
  			  </div>
  			  <div class="form-group">
    		   <div class="col-lg-offset-2 col-lg-10">
    		     <button type="submit" class="btn btn-primary m20right">Confirmar</button>
      		     <a href="listado_provincia.jsp" class="btn btn-primary">Cancelar</a>
      		   </div>
    		  </div>
			</form>
			<div class="clear"></div>
		</div>
	</div>
</div>
</body>
</html>